package com.haohe.wx.task.impl;

import java.util.Date;

import org.springframework.stereotype.Component;

import com.haohe.wx.model.User;
import com.haohe.wx.task.TaskAction;
import com.haohe.wx.wechat.WeChartXml;

/**
 * 
 * @Title ComIntroTaskActionImpl.java
 * @Description 公司简介
 * @author liming.zhao@haohedata.com
 * @date 2015-7-1 
 * @time 下午3:37:53
 */
@Component
public class ComIntroTaskActionImpl implements TaskAction {

	@Override
	public void doAction(User user, String content, StringBuffer responseText, String fromUserName,
			String toUserName) {
		StringBuffer responseContent = new StringBuffer();
		responseContent.append("测试推送文本");
		responseText.append(String.format(WeChartXml.RECEIVE_TEXT_TPL, fromUserName, toUserName,
				new Date().getTime(), "text", responseContent.toString()));
	}

}